package part1.oo.ooday02.ooday02test;

public class Teacher extends Person {

    double salary;
    Teacher(String name,int age,String address,double salary){
        super(name,age,address);
        this.salary = salary;
    }
    void teach(){
        System.out.println(name+"正在上课");
    }
}
